package com.qf.hospital.VO;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.qf.hospital.serialize.Integer2BooleanJsonSerialize;

/**
 * @author 何星宇
 * @version V1.0
 * @Date 2021/10/19 11:06
 */
public class MenuDTreeVO {
    private Integer id;

    private Integer parentId;

    private String title;

    @JsonSerialize(using = Integer2BooleanJsonSerialize.class)
    private Integer spread;

    private String checkArr = "0";

    @Override
    public String toString() {
        return "InitRoleMenuVO{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", title='" + title + '\'' +
                ", spread=" + spread +
                ", checkArr='" + checkArr + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getSpread() {
        return spread;
    }

    public void setSpread(Integer spread) {
        this.spread = spread;
    }

    public String getCheckArr() {
        return checkArr;
    }

    public void setCheckArr(String checkArr) {
        this.checkArr = checkArr;
    }
}
